﻿#pragma once
#include "afxdialogex.h"


// DiyToDo 对话框

class DiyToDo : public CDialogEx
{
	DECLARE_DYNAMIC(DiyToDo)

public:
	DiyToDo(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~DiyToDo();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DiyToDo };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
private:
	CString m_DoWhat, m_DoLog;
	int startMode;
	CList<int> modeList;
	void GetPos(int mode, int iaxisNum);
	void MoveAbs(int mode, int imoveLen, int iaxisNum, float fposlist[], int iout, int outlist[], int outtime);
	void SplitString(const char* input, CList<CString>& output);
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedAdddo();
	afx_msg void OnBnClickedCommamdrun();
	afx_msg void OnBnClickedExecuterun();
};
